﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using InteControlSys.SampleService;

namespace InteControlSys.View
{
    /// <summary>
    /// AnalysGroupBrief.xaml 的交互逻辑
    /// </summary>
    public partial class AnalysGroupBrief : UserControl
    {
        public AnalysGroupBrief()
        {
            InitializeComponent();
        }

        public IList<AnalysGroupInfo> GetAnalysGroup(DateTime bDate, DateTime eDate)
        {
            IList<AnalysGroupInfo> ag = new List<AnalysGroupInfo>();
            SampleService.SampleClient sp = new SampleClient();
            ag = sp.GetAnalysGroupBriefWithDate(bDate, eDate);
         
            return ag;
        }

        private void btnQuery_Click(object sender, RoutedEventArgs e)
        {
            DateTime begin = (DateTime)this.dpStart.SelectedDate;
            DateTime end = (DateTime)this.dpEnd.SelectedDate;
            var analysGroup = GetAnalysGroup(begin, end);

            //SampleService.SampleClient sp = new SampleClient();
            //this.lbTest.Content = sp.GetNow().ToString();

        }
    }
}
